home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / ODFDev / Form / Sources / Part.r < prev    next >
Encoding:
Text File  |  1996-12-16  |  5.4 KB  |  266 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Part.r
  4. //    Release Version:    $ ODF 3 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10.  
  11. #define SystemSevenOrBetter 1            // we want the extended types
  12. #define    SystemSevenOrLater    1            // Types.r uses this variable
  13.  
  14. #include "Types.r"
  15. #include "SysTypes.r"
  16. #include "CodeFragmentTypes.r"
  17.  
  18. #ifndef __ODTYPES_R__
  19. #include "ODTypes.r"
  20. #endif
  21.  
  22. #ifndef FWBLDDEF_H
  23. #include "FWBldDef.h"
  24. #endif
  25.  
  26. #ifndef BINDING_K
  27. #include "Binding.k"
  28. #endif
  29.  
  30. #ifndef DEFINES_K
  31. #include "Defines.k"
  32. #endif
  33.  
  34. //-------------------------------------------------------------------------------------
  35. // Code Fragment Resource
  36. //-------------------------------------------------------------------------------------
  37.  
  38. resource 'cfrg' (0) {
  39.     {    /* array memberArray: 2 elements */
  40.         /* [1] */
  41. #ifdef FW_BUILD_MAC68K
  42.         kMotorola,
  43. #else
  44.         kPowerPC,
  45. #endif
  46.         kFullLib,
  47.         kNoVersionNum,
  48.         kNoVersionNum,
  49.         kDefaultStackSize,
  50.         kNoAppSubFolder,
  51.         kIsLib,
  52.         kOnDiskFlat,
  53.         kZeroOffset,
  54.         kWholeFork,
  55.         kODFFormEditor,
  56.         /* [2] */
  57. #ifdef FW_BUILD_MAC68K
  58.         kMotorola,
  59. #else
  60.         kPowerPC,
  61. #endif
  62.         kFullLib,
  63.         kNoVersionNum,
  64.         kNoVersionNum,
  65.         kDefaultStackSize,
  66.         kNoAppSubFolder,
  67.         kIsLib,
  68.         kOnDiskFlat,
  69.         kZeroOffset,
  70.         kWholeFork,
  71.         "ODFForm"
  72.     }
  73. };
  74.  
  75. //-------------------------------------------------------------------------------------
  76. // NMAP Resources
  77. //-------------------------------------------------------------------------------------
  78.  
  79. resource kODNameMappings (kKindCategoryMapID) {
  80.     kODKind,
  81.     {    /* array Types: 1 elements */
  82.         /* [1] */
  83.         kODFFormKind,
  84.         kODIsAnISOStringList
  85.         {
  86.             {    /* array ClassIDs: 1 elements */
  87.                 /* [1] */
  88.                 kODCategoryForm
  89.             }
  90.         }
  91.     }
  92. };
  93.  
  94. resource kODNameMappings (kEditorKindMapID) {
  95.     kODEditorKinds,
  96.     {    /* array Types: 1 elements */
  97.         /* [1] */
  98.         kODFFormEditor,
  99.         kODIsAnISOStringList
  100.         {
  101.             {    /* array ClassIDs: 1 elements */
  102.                 /* [1] */
  103.                 kODFFormKind
  104.             }
  105.         }
  106.     }
  107. };
  108.  
  109. resource kODNameMappings (kEditorUserStringMapID) {
  110.     kODEditorUserString,
  111.     {    /* array Types: 1 elements */
  112.         /* [1] */
  113.         kODFFormEditor,
  114.         kODIsINTLText
  115.         {
  116.             smRoman,
  117.             langEnglish,
  118.             kODFFormEditorUserString
  119.         }
  120.     }
  121. };
  122.  
  123. resource kODNameMappings (kKindUserStringMapID) {
  124.     kODKindUserString,
  125.     {    /* array Types: 1 elements */
  126.         /* [1] */
  127.         kODFFormKind,
  128.         kODIsINTLText
  129.         {
  130.             smRoman,
  131.             langEnglish,
  132.             kODFFormKindUserString
  133.         }
  134.     }
  135. };
  136.  
  137. resource kODNameMappings (kOldMacOSTypeMapID) {
  138.     kODKindOldMacOSType,
  139.     {    /* array KeyList: 1 elements */
  140.         /* [1] */
  141.         kODFFormKind,
  142.         kODIsMacOSType {
  143.             kODFFormDocumentOSType
  144.         }
  145.     }
  146. };
  147.  
  148. //-------------------------------------------------------------------------------------
  149. // BNDL Resources
  150. //-------------------------------------------------------------------------------------
  151.  
  152. resource 'FREF' (128) {
  153.     'shlb',
  154.     0,
  155.     ""
  156. };
  157.  
  158. resource 'FREF' (129) {
  159.     kODFFormDocumentOSType,
  160.     0,
  161.     ""
  162. };
  163.  
  164. resource 'FREF' (130) {
  165.     kODFFormStationeryOSType,
  166.     1,
  167.     ""
  168. };
  169.  
  170. resource 'BNDL' (128) {
  171.     kODFFormPartEditorOSType,
  172.     0,
  173.     {    /* array TypeArray: 2 elements */
  174.         /* [1] */
  175.         'FREF',
  176.         {    /* array IDArray: 1 elements */
  177.             /* [1] */
  178.             0, 128
  179.         },
  180.         /* [2] */
  181.         'ICN#',
  182.         {    /* array IDArray: 1 elements */
  183.             /* [1] */
  184.             0, 130
  185.         }
  186.     }
  187. };
  188.  
  189. resource 'BNDL' (129) {
  190.     kODShellSignature,
  191.     0,
  192.     {    /* array TypeArray: 2 elements */
  193.         /* [1] */
  194.         'FREF',
  195.         {    /* array IDArray: 2 elements */
  196.             /* [1] */
  197.             0, 129,
  198.             /* [2] */
  199.             1, 130
  200.         },
  201.         /* [2] */
  202.         'ICN#',
  203.         {    /* array IDArray: 2 elements */
  204.             /* [1] */
  205.             0, 128,
  206.             /* [2] */
  207.             1, 129
  208.         }
  209.     }
  210. };
  211.  
  212. data kODFFormPartEditorOSType (0, "Owner resource") {
  213.     $"00"                                                 /* . */
  214. };
  215.  
  216. data kODShellSignature (0, "Owner resource") {
  217.     $"00"                                                 /* . */
  218. };
  219.  
  220. //-------------------------------------------------------------------------------------
  221. // kind Resources
  222. //-------------------------------------------------------------------------------------
  223.  
  224. // Kind resources affect the text Finder displays in the
  225. // "kind" column and file info dialog. This feature was
  226. // introduced as part of Macintosh Easy Open.
  227. //
  228. resource 'kind' (1000) {
  229.     kODFFormPartEditorOSType,
  230.     0, /* region = USA */
  231.     {
  232.         'shlb', "OpenDoc™ editor"
  233.     }
  234. };
  235.         
  236. resource 'kind' (1001) {
  237.     kODShellSignature,
  238.     0, /* region = USA */
  239.     {
  240.         kODFFormDocumentOSType, kODFFormEditorUserString" document",
  241.         kODFFormStationeryOSType, kODFFormEditorUserString" stationery"
  242.     }
  243. };
  244.  
  245. //-------------------------------------------------------------------------------------
  246. // STR resources
  247. //-------------------------------------------------------------------------------------
  248. // The -16397 string will be displayed by Finder when a user
  249. // tries to open the editor shared library. The string should
  250. // give the user a little detail about the part's capabilities
  251. // and enough information to install the part in the correct location.
  252. //
  253. resource 'STR ' (-16397, purgeable) {
  254.     "OpenDoc™ editor\n\nTo work properly, the “ODFForm” shared library"
  255.     " should be placed in the Editors folder.  To create a new document, "
  256.     "open a stationery pad."
  257. };
  258.  
  259. //-------------------------------------------------------------------------------------
  260. // Other resources
  261. //-------------------------------------------------------------------------------------
  262.  
  263. include "MacIcons.rsrc" not 'ckid';
  264.  
  265.  
  266.